package com.cpdmali.courrier.init;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletRegistration;
import javax.servlet.annotation.WebListener;

import com.cpdmali.courrier.serveur.servlet.CpdMaliCourrierServlet;


public class InitialiseCpdMaliCourrierServlet implements ServletContextListener{

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		ServletContext servletContext = sce.getServletContext();
		ServletRegistration.Dynamic api = servletContext.addServlet("CpdMaliCourrierServlet", CpdMaliCourrierServlet.class);
		api.addMapping("/cpdmalicourrier/*");
		
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		// TODO Auto-generated method stub
		
	}

}
